package sctu.edu.java.year2016.team03.maoyuhao.day20160520.chapter3_2;

/**
 * 声明两个int型变量，运用三元运算符判断两个变量是否相等，若不相等，求出两个数较大的
 * Created by cc on 2016/5/20.
 */
public class Work {
        public static void main(String[] args) {
            int a=25;
            int b=39;
            if(a==b)
                System.out.println("a与b相等 ");
            else
                System.out.println("最大值ֵΪ"+(a>b?a:b));
        }
    }